// packageA/pages/setting/setting.js
Page({
  /**
   * 页面的初始数据
   */
  data: {},

  logout() {
    this.clearStorage()
    wx.navigateBack()
  },

  clearStorage() {
    wx.removeStorageSync('address')
    wx.removeStorageSync('shareCode')
    wx.removeStorageSync('userToken')
    wx.removeStorageSync('userInfo')
    wx.removeStorageSync('showHomeDialog')
    wx.removeStorageSync('biddingData')
    wx.removeStorageSync('buyShopData')
    wx.removeStorageSync('recruitData')
    wx.removeStorageSync('sellShopData')
    wx.removeStorageSync('supplyData')
    wx.removeStorageSync('resumeData')
    wx.removeStorageSync('otherId')
    wx.removeStorageSync('otherShareTime')
  }
})
